import { RouteRecordRaw } from "vue-router"
const routerName = 'dashboard';
import Layout from "@/layout/index.vue";
import {BarChartSharp} from "@vicons/ionicons5";
import { renderIcon } from "@/utils";

const routes:Array<RouteRecordRaw> = [
{ 
    path:'/dashboard',
    name:routerName,
    component:Layout,
    redirect:'/dashboard/console',
    meta:{
      title:'首页统计',
      icon:renderIcon(BarChartSharp),
      sort:0
    },
    children:[
      {
        path:'console',
        name:`${routerName}_console`,
        meta:{
          title:'主控台',
          icon:renderIcon(BarChartSharp)
        },
        component:()=> import("@/views/dashboard/index.vue")

      }
    ]
  }
]

export default routes;